<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 184px;
            height: 325px;
            background: url(../img2.webp)no-repeat 0 0/1472px 325px;
        }
        @keyframes one{
            from{
                background-position: -184px 0;
            }
            to{
                background-position: -1472px 0;
            }
        }
        @keyframes two{
            from{
            }
            49%{
                transform: translatex(1000px);
            }
            50%{
                transform: translatex(1000px) rotatey(180deg);
            }
            to{
                transform: translatex(0) rotatey(180deg);
            }
        }
        .box{
            animation: one 0.5s steps(7), two 3s linear ;
            animation-iteration-count: infinite;
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>